using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HerGoS.Interfaces;

namespace HerGoS.Administration.Entities
{
    [Serializable]
	public class Contacto :  HGSEntity
	{
		#region Construction
        public Contacto()
            : base()
        {
            Initializer();
        }

        public Contacto(TipoContacto tipocontacto, string email, string telefono, string fax)
            : this()
        {
            this.TipoContacto = tipocontacto;
            this.Email = email;
            this.Telefono = telefono;
            this.Fax = fax;
        }

        private void Initializer()
        {
            this.TipoContacto = new TipoContacto();
            this.Email = "";
            this.Telefono = "";
            this.Fax = "";
        }

		#endregion

		#region DataMembers
		private TipoContacto _TipoContacto;
		private String _Email;
		private String _Telefono;
		private String _Fax;
        private bool _Principal;
		#endregion

		#region Properties

        public TipoContacto TipoContacto
        {
		    get { return _TipoContacto; }
		    set { this._TipoContacto = value; }
		}

		public String Email {
		    get { return _Email; }
		    set { this._Email = value; }
		}

		public String Telefono {
		    get { return _Telefono; }
		    set { this._Telefono = value; }
		}

		public String Fax {
		    get { return _Fax; }
		    set { this._Fax = value; }
		}

        public bool Principal
        {
            get { return _Principal; }
            set { this._Principal = value; }
        }
		#endregion
		
		#region Overrides
		/// <summary>
		/// Returns the string of the object.
		/// </summary>
		/// <returns>String</returns>
		public override String ToString()
		{
			return this.ToString();
		}

		#endregion
	}
}